import { IParam } from '../../common';
import { ICtrlActionResult } from '../data-action';
import { IDECtrlAbility } from './i-de-ctrl-ability';
/**
 * 表单能力接口
 *
 * @export
 * @interface IFormAbility
 * @extends {IDEWidgetAbility}
 */
export interface IFormAbility extends IDECtrlAbility {
	/**
	 * 加载草稿
	 *
	 * @param {IParam} [opts]
	 * @return {*}  {Promise<IHttpResponse>}
	 * @memberof IFormAbility
	 */
	loadDraft(opts?: IParam): Promise<ICtrlActionResult>;

	/**
	 * 表单值校验
	 *
	 * @memberof IFormAbility
	 */
	validate: () => Promise<boolean>;
}
